package com.hue.springbootmysql.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hue.springbootmysql.dao.CityDao;
import com.hue.springbootmysql.domain.City;
import com.hue.springbootmysql.service.CityService;
import com.hue.springbootmysql.vo.CityVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl extends ServiceImpl<CityDao, City> implements CityService {

    @Override
    public Integer cityCountByCId(int cId) {
        return baseMapper.cityCountByCId(cId);
    }

    @Override
    public List<CityVo> cityVoList() {
        return baseMapper.cityVoList();
    }
}
